from ftllibs.items.itemtools import ItemIconData

class Item_3165():
    def __init__(self):
        self.parent=False
        self.Name="Morello's Evil Tome"
        self.IconFileName="3165.png"
        self.ID=3165
        self.Stack=0
        self.MaxStack=0
        self.Built_From=['3098','1052','3108','1005','1052']
        self.Builds_Into=[]
        self.Tags=['spell_damage','mana_regen','cooldown_reduction']
        self.Costs = 440
        self.Total_Costs = 2330
        self.Description="+75 Ability Power +12 Mana Regen per 5 seconds UNIQUE Passive: +20% Cooldown Reduction  UNIQUE Active: Inflicts target enemy champion with Grievous Wound, causing 50% reduced healing and regeneration for 8 seconds (20 second cooldown)."
        self.RichText_Description=""
        self.has_active=True
        self.has_passive=True
        self.IconData=ItemIconData(self.IconFileName)
        self.Availability=["all"]
        self.Custom()

    def UpdateStats(self):
        self.parent.Ability_Power += 75.0
        self.parent.Mana_Regen_per_5_seconds += 12.0
        self.parent.Cooldown_Reduction += 20.0
        # above is %
        self.UpdateStats_Custom()


    def Custom(self):
        pass

    def UpdateStats_Custom(self):
        pass
